#include "myweb.h"

MyWeb::MyWeb(QWidget *parent) : QWebEngineView(parent)
{
     connect(this->page(),&QWebEnginePage::linkHovered,this,&MyWeb::onChangedUrl);
}


 void MyWeb::onChangedUrl(const QString &url)
 {
     qDebug()<<"url:"<<url<<endl;
 }
